package com.example.scancodelogindemo.enums;

import lombok.Getter;

/**
 *
 *
 * WAITING-->SCANNED-->CONFIRMED
 *                  \
 *                   -->CANCEL
 * qr码状态枚举
 *
 * @author 傲寒
 * @date 2023/12/07
 */
@Getter
public enum QrCodeStatusEnum {

    WAITING(10000, "待扫描"),

    SCANNED(20000, "已扫描,待确认"),

    CONFIRMED(30000, "已确认"),

    CANCEL(40000, "已取消"),

    INVALID(40000, "二维码失效");

    private final Integer code;

    private final String msg;

    QrCodeStatusEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
